package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.stock.StockLoss;

/**
 * 报损单事件
 */
public class StockLossEvent extends DomainEvent<StockLoss> {

  public static final String STOCK_LOSS_CONFIRM_STATUS = "stockLossConfirmStatus";
  public static final String STOCK_LOSS_UN_STATUS = "stockLossUnStatus";

  //确认
  public static StockLossEvent buildStockLossConfirmStatus(Object[] values) {
    StockLossEvent stockLossEvent = new StockLossEvent();
    stockLossEvent.eventName = STOCK_LOSS_CONFIRM_STATUS;
    stockLossEvent.values = values;
    return stockLossEvent;
  }

  //取消确认
  public static StockLossEvent buildStockLossUnStatus(Object[] values) {
    StockLossEvent stockLossEvent = new StockLossEvent();
    stockLossEvent.eventName = STOCK_LOSS_UN_STATUS;
    stockLossEvent.values = values;
    return stockLossEvent;
  }

}
